import { NativeHelper } from "../../native/NativeHelper";
import { IPayAble } from "../IPayAble";

export class NativePay extends IPayAble{
    protected _className:string = "sdk.{0}.Pay";
    init(type: string): IPayAble {
        this._className = this._className.replace("{0}", type);
        return super.init(type);
    }
    
    pay(money: number): void {
        NativeHelper.call(this._className, "pay", money);
    }

}
